package com.os;

import com.graphics.ImageIdentity;
import java.util.ArrayList;

/**
 *
 * @author Sajarwo Anggai
 */
public class ObjectSprite {

    public static String LEFT_SPRITE = "Left";
    public static String RIGHT_SPRITE = "Right";
    public static String UP_SPRITE = "Up";
    public static String DOWN_SPRITE = "Down";
    public static String OTHER_SPRITE = "Other";
    private ImageIdentity left;
    private ImageIdentity right;
    private ImageIdentity up;
    private ImageIdentity down;
    private ImageIdentity other;
    private ArrayList leftBound;
    private ArrayList rightBound;
    private ArrayList upBound;
    private ArrayList downBound;
    private ArrayList otherBound;
    private int leftTime;
    private int rightTime;
    private int upTime;
    private int downTime;
    private int otherTime;
    private boolean character;
    private String name = "";

    public ObjectSprite(String name) {
        this.name = name;
        leftBound = new ArrayList();
        rightBound = new ArrayList();
        upBound = new ArrayList();
        downBound = new ArrayList();
        otherBound = new ArrayList();
    }

    public ObjectSprite(String name, boolean character) {
        this.name = name;
        this.character = character;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setLeft(ImageIdentity left) {
        this.left = left;
    }

    public void setRight(ImageIdentity right) {
        this.right = right;
    }

    public void setUp(ImageIdentity up) {
        this.up = up;
    }

    public void setDown(ImageIdentity down) {
        this.down = down;
    }

    public void setOther(ImageIdentity other) {
        this.other = other;
    }

    public void setCharacter(boolean character) {
        this.character = character;
    }

    public ImageIdentity getLeft() {
        return left;
    }

    public ImageIdentity getRight() {
        return right;
    }

    public ImageIdentity getUp() {
        return up;
    }

    public ImageIdentity getDown() {
        return down;
    }

    public ImageIdentity getOther() {
        return other;
    }

    public boolean isCharacter() {
        return character;
    }

    public void setLeftTime(int leftTime) {
        this.leftTime = leftTime;
    }

    public int getLeftTime() {
        return leftTime;
    }

    public void setRightTime(int rightTime) {
        this.rightTime = rightTime;
    }

    public int getRightTime() {
        return rightTime;
    }

    public void setUpTime(int upTime) {
        this.upTime = upTime;
    }

    public int getUpTime() {
        return upTime;
    }

    public void setDownTime(int downTime) {
        this.downTime = downTime;
    }

    public int getDownTime() {
        return downTime;
    }

    public void setOtherTime(int otherTime) {
        this.otherTime = otherTime;
    }

    public int getOtherTime() {
        return otherTime;
    }

    public String toString() {
        return name;
    }

    public ArrayList getLeftBound() {
        return leftBound;
    }

    public ArrayList getRightBound() {
        return rightBound;
    }

    public ArrayList getUpBound() {
        return upBound;
    }

    public ArrayList getDownBound() {
        return downBound;
    }

    public ArrayList getOtherBound() {
        return otherBound;
    }
}
